<?php /* Smarty version 2.6.14, created on 2014-11-19 17:53:28
         compiled from game_manager.comment.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'game_manager.comment.html', 28, false),array('modifier', 'date_format', 'game_manager.comment.html', 34, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<!--<table border="0" class="search" cellspacing="0" id="search">
   	<tr>
    	<td class="searchlogo"></td>
        <td><?php echo $this->_tpl_vars['gameselect']; ?>
&nbsp;&nbsp;<input type="submit" value="查询" class="button"/></td>
    </tr>
</table>
-->
<table class="adminlist" border="0" cellspacing="0">
	<thead>
        <tr>
            <th><input type="checkbox" name="toggle" id="toggle" value="all" /></th>
            <th><?php echo $this->_tpl_vars['systemLang']['sort']; ?>
</th>
			<th>&nbsp;</th>
            <th><?php echo $this->_tpl_vars['systemLang']['adsName']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['commentContent']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['adsTime']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['operate']; ?>
</th>
        </tr>
    </thead>
    <tbody>
    
    <?php $_from = $this->_tpl_vars['commentlist']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['myad']):
?>
    	<tr class="row0">
        	<td><input type="checkbox" name="select_id[]" value="<?php echo $this->_tpl_vars['myad']['id']; ?>
"></td>
        	<td><select  id="orders_<?php echo $this->_tpl_vars['myad']['id']; ?>
">
	    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['ordertotal'],'selected' => $this->_tpl_vars['myad']['orders']), $this);?>

    </select></td>
			<td><input value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" type="button" class="button" onclick="abc('<?php echo @BASEURI; ?>
game_manager/comment/<?php echo $this->_tpl_vars['myad']['game_id']; ?>
','orders_<?php echo $this->_tpl_vars['myad']['id']; ?>
','<?php echo $this->_tpl_vars['myad']['id']; ?>
')"/></td>
        	<td><?php echo $this->_tpl_vars['myad']['name']; ?>
</td>
            <!--<td><?php echo $this->_tpl_vars['games'][$this->_tpl_vars['myad']['game_id']]; ?>
</td>-->
            <td><?php echo $this->_tpl_vars['myad']['content']; ?>
</td>
        	<td><?php echo ((is_array($_tmp=$this->_tpl_vars['myad']['add_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
</td>
        	<td>
            <a href="<?php echo @BASEURI; ?>
game_manager/commedit2/<?php echo $_GET['2']; ?>
/<?php echo $this->_tpl_vars['myad']['id']; ?>
"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
</a>
            <a href="<?php echo @BASEURI; ?>
game_manager/commdel/<?php echo $_GET['2']; ?>
/<?php echo $this->_tpl_vars['myad']['id']; ?>
" <?php echo @IS_DELETE; ?>
 ><?php echo $this->_tpl_vars['systemLang']['del']; ?>
</a>
            </td>
        </tr>
   <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>
    	<tr>
        	<td colspan="3">
			
            <input type="button" class="button" value="<?php echo $this->_tpl_vars['systemLang']['add']; ?>
" accesskey="N" onClick="button_location('<?php echo @BASEURI; ?>
game_manager/commedit/<?php echo $_GET['2']; ?>
')">
            </td>
            <td colspan="3">&nbsp;</td>
        </tr>
    </tfoot>
</table>
</form>
<script>
function getSelectedValue(name){
var obj=document.getElementById(name);
return obj.value;      //直接用其对象的value属性便可获取到
}
function abc(url,a,b){
	ab=getSelectedValue(a);
	window.location=url+'/'+ab+'/'+b;
}
</script>